package com.mxnet.chongjin.nci.view;

import android.content.Context;
import android.text.Layout;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;

import com.mxnet.chongjin.nci.R;

/**
 * author: Administrator
 * email: lcj270018655@163.com
 * date: 2018/10/17
 */

public class ItemInspectionView extends LinearLayout {
    private EditText mEditText1, mEditText2;
    private Button mButton;
    private int mLayoutResID;

    public ItemInspectionView(Context context, int layoutResID) {
        super(context);
        mLayoutResID = layoutResID;
        View inflate = LayoutInflater.from(context).inflate(layoutResID, this);
        mEditText1 = inflate.findViewById(R.id.edittext_item_inspection1);
        mEditText2 = inflate.findViewById(R.id.edittext_item_inspection2);
        mButton = inflate.findViewById(R.id.btn_item_inspection);
    }

    public EditText getEditText1() {
        return mEditText1;
    }

    public EditText getEditText2() {
        return mEditText2;
    }

    public Button getButton() {
        return mButton;
    }
}
